﻿using System;
using System.Collections.Generic;
using System.Data.Linq.Mapping;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Xml.Linq;

namespace EbbinghausWord.Entities
{
    /// <summary>
    /// 词典数据库表
    /// </summary>
    [Table]
    public class TableDictionaryEntity : BaseTableEntity
    {
        private string _english;

        /// <summary>
        /// 英语
        /// </summary>
        [Column(IsPrimaryKey = true, IsDbGenerated = false, DbType = "NVarChar(200) NOT NULL",
           CanBeNull = false, AutoSync = AutoSync.Never)]
        public string English
        {
            get { return _english; }
            set
            {
                if (_english == value) return;

                NotifyPropertyChanging("English");
                _english = value;
                NotifyPropertyChanged("English");
            }
        }

        public XElement CompleteData { get; set; }

        //private string _completeData;
        ///// <summary>
        ///// 完成的数据
        ///// </summary>
        //[Column(DbType = "ntext")]
        //public string CompleteData
        //{
        //    get { return _completeData; }
        //    set
        //    {
        //        if (_completeData == value) return;

        //        NotifyPropertyChanging("CompleteData");
        //        _completeData = value;
        //        NotifyPropertyChanged("CompleteData");
        //    }
        //}

        /// <summary>
        /// 数据的XElement格式
        /// </summary>
        //public XElement Element { get; set; }

    }
}
